<%--
	fileName      : personal_shortcutmenulist2.jsp
	author        : kfzx-liukai
	createDate    : 2010-6-9  上午01:57:02
	lastModifier  : kfzx-liukai
	lastModifyDate: 2010-6-9  上午01:57:02
	description   : 快捷菜单展现
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="ctp-tag" prefix="ctp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><ctp:label key="quick_menu_book"/></title>
		<ctp:include items='borderlayout,panel,toolbar,grid,button,menus'/>
		<script type='text/javascript' kind='variant'>		  
		    //================================UI变量定义片段============================================================
		    var ctpBorderlayout;//页面框架布局器
		    var ctpToolbar;//工具条
		    var ctpGrid;//Grid
		</script>
		<script type='text/javascript' kind='event'>
			//================================函数定义片段============================================================
			/**
             * 定制快捷菜单
             * @version	 1.0
             * @since	 1.0
             * @author	kfzx-liukai           
             */
			function btnEdit(){               
			    var _fnContext = "personal_shortcutmenulist.jsp" + "->btnEdit()";
			    try {                  
			    	document.GotoShortCutMenuDefinePage.submit();
			    } 
			    catch (e) {
			        ctp.core.log.err(_fnContext, e.message);
			    }  
			}
		</script>
		<script type='text/javascript' kind='notUi'>
			//================================非UI组件定义片段==========================================================
			var myurl='<ctp:url href="personal.flowc" flowActionName="queryShortCutMenu" />';
		</script>
		<script type='text/javascript' kind='ui'>
			//================================UI组件定义片段============================================================
			/**
	         * 创建UI组件
	         * @version	 1.0
	         * @since	 1.0
	         * @author	kfzx-liukai           
	         */		    
		    function initUI(){
		    	var _mContext = "personal_shortcutmenulist.jsp -> initUI()";
	       	 	try {
	       	 		//创建工具条
	       	 		ctpToolbar=new ctp.ui.toolbar({
						id : 'toolBar',			
		            	leftItems :[
		    		        {
								id : "_toolbar_button_new",
				            	type : 'button',
				            	text : '<ctp:label key="book_quick_menu"/>',
				           		icon : 'edit',
				            	onClick : btnEdit
		    		        }]
				    });
	       	 		ctpGrid = new ctp.ui.grid({
				    	id: "shortcutGrid",
				    	header: {
			                title:[
			                	[{text:'<ctp:label key="menu_id"/>'},
			                     {text: '<ctp:label key="menu_name"/>'}]
			                ],
			                attr: [
			                    {fieldName: "id"},
			                    {fieldName: "name"}
							]
		                },
		                title: '<ctp:label key="quick_menu_list"/>',
		                url:myurl,
		                height:'100%',
		                toolbar:ctpToolbar,
		                toolbarPos:'innertop'
				    });
	       	 		ctpBorderlayout = new ctp.ui.borderlayout({
	                    type: "1C",
	                 //   center__scrollable:true,
	                    center__items:[ctpGrid],
	                    renderTo:'body'
	                });

	       	 	}
			    catch (e) {
			        ctp.core.log.err(_mContext, e.message);
			    } 
			}
		</script>
	</head>
	<body onload='initUI()'>
		<ctp:form name="GotoShortCutMenuDefinePage" method="post" action="personal.flowc" flowActionName="shortcutmenulist"></ctp:form>
	</body>
</html>

<%--
	date        :
	modifyReason:
--%>